package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author yan
 * @since 2022-05-14
 */
@ApiModel(value="UserWordBook对象", description="")
public class UserWordBook implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ID_WORKER)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "词书id")
    private Long wordbookId;

    @ApiModelProperty(value = "背到哪个单词了")
    private Long wordWordbookId;

    @ApiModelProperty(value = "第几遍背")
    private Integer times;

    @ApiModelProperty(value = "状态：1正在背    0：不在背")
    private Integer status;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getWordbookId() {
        return wordbookId;
    }

    public void setWordbookId(Long wordbookId) {
        this.wordbookId = wordbookId;
    }

    public Long getWordWordbookId() {
        return wordWordbookId;
    }

    public void setWordWordbookId(Long wordWordbookId) {
        this.wordWordbookId = wordWordbookId;
    }

    public Integer getTimes() {
        return times;
    }

    public void setTimes(Integer times) {
        this.times = times;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "UserWordBook{" +
        "id=" + id +
        ", userId=" + userId +
        ", wordbookId=" + wordbookId +
        ", wordWordbookId=" + wordWordbookId +
        ", times=" + times +
        ", status=" + status +
        ", updateTime=" + updateTime +
        "}";
    }
}
